import { VComponent } from './framework';

export class Button extends VComponent {
  private childContainer = (<span />);

  render() {
    this.root = (<div>{this.childContainer}</div>).render();
    return this.root;
  }

  appendChild(child: VComponent) {
    if (!this.childContainer) {
      this.render();
    }
    this.childContainer.appendChild(child);
  }
}
